package com.atguigu.gmall.common.consts;

/**
 * @Author:lyd
 **/
public class RabbitConst {
    public static final String EXCHANGE_ORDER_EVENT = "order-event-exchange";

    public static final String QUEUE_ORDER_CREATE = "order-create-queue";
    public static final String QUEUE_ORDER_DEAD = "order-dead-queue";
    public static final String ROUTING_KEY_ORDER_TIME_OUT = "order.timeout";
    public static final String ROUTING_KEY_ORDER_CREATE = "order.create";
    public static final String ROUTING_KEY_ORDER_PAYED = "order.payed";
    //支付成功队列
    public static final String QUEUE_ORDER_PAYED = "queue-order-payed";

    //扣减库存交换机
    public static final String EXCHANGE_DIRECT_WARE_STOCK = "exchange.direct.ware.stock";
    public static final String ROUTING_KEY_WARE_STOCK = "ware.stock";

    //库存系统发送扣减结果需要的交换机和队列
    public static final String EXCHANGE_DIRECT_WARE_ORDER = "exchange.direct.ware.order";
    public static final String QUEUE_WARE_ORDER = "queue.ware.order";
    public static final String ROUTING_KEY_WARE_ORDER = "ware.order";

}
